package com.hrs.core.service;

import com.hrs.common.result.Result;
import com.hrs.enity.db.File;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hrs.enity.vo.FileVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
* @author 纱雾休比酱
* @description 针对表【t_file(文件)】的数据库操作Service
* @createDate 2023-01-13 03:08:38
*/
public interface FileService extends IService<File> {

    /**
     * 图片上传*
     * @param file
     * @return
     */
    Result<File> localUpload(MultipartFile file);

    /**
     * fileParentPath*
     * @param response
     * @param path
     */
    void localDownload(HttpServletResponse response, String path);
}
